package com.seres.listener.event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * @Description :
 * @ClassName : SetexEvent
 * @Author : 程磊
 * @Date: 2020-08-13 21:00
 */
@Getter
@Setter
public class RedisDelEvent extends ApplicationEvent {
    private String key;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public RedisDelEvent(Object source, String key) {
        super(source);
        this.key = key;
    }
}
